import request from '@/utils/request'

// 查询商品退货列表
export function listOrderReturn(query) {
  return request({
    url: '/orderReturn/orderReturn/list',
    method: 'get',
    params: query
  })
}

// 查询商品退货详细
export function getOrderReturn(returnId) {
  return request({
    url: '/orderReturn/orderReturn/' + returnId,
    method: 'get'
  })
}

// 新增商品退货
export function addOrderReturn(data) {
  return request({
    url: '/orderReturn/orderReturn',
    method: 'post',
    data: data
  })
}

// 修改商品退货
export function updateOrderReturn(data) {
  return request({
    url: '/orderReturn/orderReturn',
    method: 'put',
    data: data
  })
}

// 删除商品退货
export function delOrderReturn(returnId) {
  return request({
    url: '/orderReturn/orderReturn/' + returnId,
    method: 'delete'
  })
}
